home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / MacPerl Source ƒ / Perl5 / lib / GetKey.pl < prev    next >
Encoding:
Text File  |  1995-10-06  |  339 b   |  19 lines  |  [TEXT/MPS ]

  1. #
  2. # GetKey -- return key that was pressed, if any
  3. # Matthias Neeracher <neeri@iis.ee.ethz.ch>
  4. #
  5. # Distribution permitted as long as copyright notice stays intact.
  6.  
  7. #
  8. # $result = &MacPerl'GetKey();
  9. #
  10. # $result is a single character if a key was pressed, else
  11. # an empty string.
  12. #
  13.  
  14. package MacPerl;
  15.  
  16. &MacPerl'LoadExternals("GetKey.pl");
  17.  
  18. 1;
  19.